package com.niuwa.p2p.dao.customer;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.customer.CustomerContactor;

/**
 * 客户联系人服务接口
 * 
 * @author zhangbo
 *
 */
@MyBatisDao
public interface CustomerContactorDao {

	/**
	 * 根据客户ID获取联系人列表
	 * 
	 * @param custId
	 *            客户ID
	 * @return List<CustomerContactor>
	 */
	List<CustomerContactor> getCustContactorList(Long custId);

	/**
	 * 根据联系人的id和关系类型查询集合
	 * 
	 * @param map
	 * @return
	 */
	List<CustomerContactor> findCustContactorByType(Map<String, Object> map);
	
	/**
	 * 更新一条记录
	 * 
	 * @param customerContactor
	 * @return
	 */
	int update(CustomerContactor customerContactor);
	
	/**
	 * 新增一条记录
	 * @param customerContactor
	 * @return
	 */
	int insert(CustomerContactor customerContactor);
	
}
